import "reflect-metadata"
import { DataSource } from "typeorm"
import path from 'node:path';

export const AppDataSource = new DataSource({
    type: "mysql",
    host: "localhost",
    port: 3306,
    username: "root",
    password: "aaaa",
    database: "test_db",
    synchronize: true,
    logging: false,
    entities: [path.resolve(__dirname, 'entity/*.ts')],
    migrations: [],
    subscribers: [],
})
